package com.ldc.commonlibs.ui;

import android.view.View;

import androidx.viewbinding.ViewBinding;

/**
 * @author liudc
 * @since 2022/7/3 13:36
 */
public abstract class VActivityBase<VB extends ViewBinding> extends ActivityBase {
    protected VB viewBinding;

    @Override
    protected View getLayoutView() {
        viewBinding = loadingViewBinding();
        return viewBinding.getRoot();

    }

    /**
     * 加载viewBinding
     * @return VB
     */
    protected VB loadingViewBinding() {
        return initViewBinding();
    }

    protected abstract VB initViewBinding();
}
